#include "uisettings.h"

#include <QQuickStyle>
#include <QFile>
#include <QtDebug>
#include <QGuiApplication>
// #include <QProcess>

UiSettings::UiSettings(QObject *parent)
    : QObject{parent}
{}

QStringList UiSettings::availableStyles()
{
    return QQuickStyle::availableStyles();
}

QString UiSettings::currentStyle()
{
    return qApp->arguments().value(1, "material");
}

void UiSettings::slotUpdateStyle(const QString &name)
{
    qApp->quit();
    // QProcess::startDetached(qApp->arguments()[0], {name});

}
